package com.allen.admin.service.common.service;

import java.util.List;

import com.allen.admin.service.common.domain.AdminRole;
import com.xxx.config.ModelResult;
import com.xxx.page.DataPage;

public interface AdminRoleService {

	ModelResult<AdminRole> create(AdminRole obj);

	ModelResult<AdminRole> update(AdminRole obj);

	ModelResult<AdminRole> query(Integer id);

	ModelResult<AdminRole> queryByName(String name);

	ModelResult<AdminRole> queryByCode(String code);

	ModelResult<List<AdminRole>> query(List<Integer> ids);

	ModelResult<List<AdminRole>> queryAllEnabled();

	ModelResult<DataPage<AdminRole>> queryPage(DataPage<AdminRole> dataPage, AdminRole qObj);
	
}
